<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%@ include file="../../attr.jsp" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!doctype html>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=emulateIE7"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta charset="utf-8">
    <link rel="stylesheet" href="${ctx}/css/sapar.css"/>
    <link rel="stylesheet" type="text/css" href="${ctx}/css/common.css"/>
    <script type="text/javascript" src="${ctx}/js/jquery.js"></script>
    <script type="text/javascript" src="${ctx}/js/sapar.js"></script>
    <script type="text/javascript" src="${ctx}/js/WdatePicker.js"></script>
    <script type="text/javascript" src="${ctx}/assets/layer/layer.js"></script>
    <script type="text/javascript" src="${ctx}/js/kkpager.min.js"></script>
    <link rel="stylesheet" type="text/css" href="${ctx}/css/kkpager_blue.css"/>
    <title>编辑包装</title>
</head>

<body>
<div id="saper-container">
    <div id="saper-hd"></div>
    <div id="saper-bd">

        <div class="subfiled-content">
            <form class="saper-form" id="dataForm">
                <!-- 	                <div class="kv-item clearfix"> -->
                <!-- 	                    <span >有效期是否需要更改:</span>  -->
                <!-- 	                    <input type="checkbox" id="changeTime" name="changeTime " value="0"> -->


                <!-- 	                </div> -->
                <div class="kv-item clearfix">
                    <span>是否打印缺失物品:</span>
                    <input type="checkbox" id="dyloseMingxi" name="dyloseMingxi " value="0">
                    <input type="hidden" name="huishouWupinbaoTiaoma" value="${huishouWupinbaoTiaoma }"/>
                    <input type="hidden" name="huishouWupinbaoMuban" value="${huishouWupinbaoMuban }"/>
                </div>

                <!-- 	                <div class="kv-item clearfix"> -->
                <!-- 	                	<span >是否打印包内器械明细:</span> -->
                <!-- 	                	<input type="checkbox" id="dyqxMingxi" name="dyqxMingxi "value="0"> -->

                <!-- 	                </div> -->
                <div>
                    <input type="button" value="打印预览" onclick="dyyl()"/>
                </div>
            </form>
        </div>
    </div>
    <div id="saper-ft"></div>
</div>

</body>

<script type="text/javascript">

    function dyyl() {
// 	if($("#changeTime").is(':checked')){
// 		$("#changeTime").val("1");
// 	}else{
// 		$("#changeTime").val("0");
// 	}
        if ($("#dyloseMingxi").is(':checked')) {
            $("#dyloseMingxi").val("1");
        } else {
            $("#dyloseMingxi").val("0");
        }
// 	if($("#dyqxMingxi").is(':checked')){
// 		$("#dyqxMingxi").val("1");
// 	}else{
// 		$("#dyqxMingxi").val("0");
// 	}
        var dyloseMingxi = $("#dyloseMingxi").val();
// 	var changeTime = $("#changeTime").val();

// 	var dyqxMingxi = $("#dyqxMingxi").val();
        var huishouWupinbaoTiaoma = $("input[name='huishouWupinbaoTiaoma']").val();
        var huishouWupinbaoMuban = $("input[name='huishouWupinbaoMuban']").val();


        layer.open({
            type: 2,
            title: '打印条码',
            maxmin: true,
            shadeClose: true, //点击遮罩关闭层
            area: ['500px', '400px'],
            content: '${ctx}/peibao/tiaoma.do?&dyloseMingxi=' + dyloseMingxi + '&huishouWupinbaoTiaoma=' + huishouWupinbaoTiaoma + '&huishouWupinbaoMuban=' + huishouWupinbaoMuban
        });
    }


</script>
</html>